/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.core.thread.service.RunCase02
   Module Description   :

   Date Created      : 2008/12/4
   Original Author   : jeffma
   Team              : Yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.core.thread.service;

import java.sql.Date;
import java.util.Random;

import com.yaodian100.core.thread.batch.AbstractRunJob;

/**
 * @author jeffma
 */
public class RunCase02 extends AbstractRunJob {

	/** default constructors */
	public RunCase02(String code) {
		super(code);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Runnable#run()
	 */
	@Override
	public void execute() {
		Date now = new Date(System.currentTimeMillis());
		Random r = new Random(now.getTime());
		for (int i = 0; i < 10000000; i++) {
			Math.pow(r.nextDouble(), r.nextDouble());
		}
	}
}
